﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cos.Core.Model.Template;

namespace Cos.Module.Template.Data
{
    public interface IPartRepository
    {
        Part GetPart(int partId);

        Part GetPart(int templateId, string partName);

        IEnumerable<Part> GetParts(int templateId);

        Part SavePart(Part part);
    }
}
